<template>
	<view class="my-main">
		<view class="my-box">
			<view>我的简介-update 后</view>
			<view>
				<button type="warn" @tap="logout">注销</button>
			</view>
		</view>
	</view>
</template>


<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			logout() {
				uni.removeStorageSync('username');
				uni.removeStorageSync('userphone');
				uni.showToast({
					title: '注销成功！'
				});
				uni.redirectTo({
					url: '/pages/index/index'
				})
			}

		}
	}
</script>

<style>
	.my-box {
		display: flex;
		width: 90%;
		height: 600rpx;
		flex-direction: column;
		justify-content: space-between;
	}

	.my-main {
		display: flex;
		width: 100%;
		justify-content: center;

	}
</style>
